module.exports = app => {
    const mongoose = require('mongoose')

    dbUrl = "mongodb://120.25.107.142/caiduoduo"
    
    mongoose.connect(dbUrl,{ useNewUrlParser:true },(err) => {
        err ? console.log("数据库连接失败") : console.log("数据库连接成功")
    })
}
